loadmenoy=function(url){
	let xml;
	let id=getmomeyid();
	let mytext=document.getElementById('emid');
	mytext.innerText=id;
	let t1=document.getElementById('name');
	let t2=document.getElementById('djrq');
	let t3=document.getElementById('djr');
	let i0=document.getElementById('jbm');
	let i1=document.getElementById('jbm1');
	let i2=document.getElementById('jtm');
	let i3=document.getElementById('wcm');
	let i4=document.getElementById('zfm');
	let i5=document.getElementById('ylm');
	let i6=document.getElementById('ylbm');
	let i7=document.getElementById('sym');
	let sum=document.getElementById('summ');
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			let t=JSON.parse(xml.responseText);
			  t1.value=t.data.sName;
			  t2.value=t.data.sRecordDate;
			  t3.value=t.data.sRecorder;
			  i1.value=t.data.sBasic;
			  i0.value=t.data.sBasic;
			  i2.value=t.data.sTransport;
			  i3.value=t.data.sLunch;
			  i4.value=t.data.sCommunicate;
			  i5.value=t.data.sPension;
			  i6.value=t.data.sMedical;
			  i7.value=t.data.sUnemployment;
			  sum.value=getsum(i1.value);
		}
	}
	xml.open("post",url,true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('sID='+id);
}
let getmomeyid=function(){
	let id=decodeURI(window.location .href);
    let aa=id.indexOf('=');
    if (aa>-1){
    id=id.substring(aa+1);
    }
    return id;
}
let getsum=function(t){
	let t1=(t*0.08).toFixed(2);
	let t2=(t*0.02+3).toFixed(2);
	let t3=(t*0.005).toFixed(2);
	let t4=(t*0.08).toFixed(2);
	let t5=(t*0.02).toFixed(2);
	let t6=(t*0.01).toFixed(2);
	let tsum=Number(t)+Number(t1)+Number(t2)+Number(t3)+Number(t4)+Number(t5)+Number(t6);
	tsum=tsum.toFixed(2);
	return tsum;
	//alert(tsum);
}
